{# Overseer > Deployments > Overview's card (overseer_deployments._deployed), one of four views. A deployed server says where redeploys come from. Without a server yet, the way to one (New server); one being made, the way to it there. With a server, the server, what can be asked of ``aegis deploy-agent`` for it (rolling back and destroying folded into More), and, while one runs, its newest job (whole under Jobs). #} {% from "components/macros/layout.html" import card, dropdown, facts %} {% from "pages/overseer/deployments/_macros.html" import agent_note, ask, deployed_card, destroy_form, goto, job_panel, note, place %} {% if actions.view == "deployed" %} {{ deployed_card(actions) }} {% elif actions.view == "no-server" %} {% call card("Your server", id="card-deploy") %}

No server yet: {{ goto(new_url, "New server") }} walks you to one.

{% endcall %} {% elif actions.view == "creating" %} {% call card("Your server", id="card-deploy") %}

A server is being created: {{ goto(new_url, "New server") }} shows where it is.

{% endcall %} {% else %} {# What it can do hides while its job runs (``data-locks``, input.css). #}
{% call card("Your server", id="card-deploy") %} {{ place(actions.server) }} {{ facts(actions.server.facts) }} {% if actions.agent.state == "ready" %} {% with live = actions.live %}{% include "pages/overseer/deployments/_live.html" %}{% endwith %} {% with storage = actions.storage %}{% include "pages/overseer/deployments/_storage.html" %}{% endwith %}
{{ ask("Deploy", actions.partials, "deploy", "primary") }} {{ ask("Back up now", actions.partials, "backup") }} {% if actions.drill %}{{ ask(actions.drill.label, actions.partials, actions.drill.verb) }}{% endif %} {# Rolling back and destroying are rare: folded into a menu, asked there. #} {% call dropdown("More", align="left") %}
  • {% with r = actions.rollback %}{% include "pages/overseer/deployments/_rollback.html" %}{% endwith %}
  • {% if actions.destroy %}
  • {{ destroy_form(actions.partials, actions.destroy) }}
  • {% endif %} {% endcall %}
    {{ job_panel(actions) }} {% endif %} {{ agent_note(actions.agent) }} {% endcall %}
    {% endif %}